<template>
  <div id="app">
    <h2>{{ counterStore.counter }}</h2>
    <el-button>Default</el-button>
    <el-button type="primary">Primary</el-button>
    <el-button type="success">Success</el-button>
    <router-link to="/login">登录</router-link>
    <router-link to="/main">首页</router-link>
    <router-view></router-view>
  </div>
</template>

<script lang="ts" setup>
// 导入 pinia 实例
import { useCounterStore } from '@/stores/counter'

// 实例化容器
const counterStore = useCounterStore()
</script>

<style scoped lang="less"></style>
